import { request } from '../../../request';

// 添加刀具
export function addingtoolData(data: any) {
  return request({
    url: `/qms/single/singleVcutKnifes/addKnife`,
    method: 'post',
    data
  });
}
// 查询所有刀具
export function queryalltools(params: any) {
  return request({
    url: `qms/single/singleVcutKnifes/listKnife`,
    method: 'get',
    params
  });
}
// 修改刀具库中信息
export function modifiedtoolData(data: any) {
  return request({
    url: `qms/single/singleVcutKnifes/updateKnife`,
    method: 'post',
    data
  });
}
// 删除刀具
export function erasetoolData(data: any) {
  return request({
    url: `qms/single/singleVcutKnifes/deleteKnife`,
    method: 'post',
    data
  });
}
// 查询所有刀具库匹配关系
export function toolRelationship(params: any) {
  return request({
    url: `qms/single/singleVcutKnifes/selectMateList`,
    method: 'get',
    params
  });
}
// 添加刀具库位匹配关系
export function addtoolRelationship(data: any) {
  return request({
    url: `qms/single/singleVcutKnifes/updateKnifesMate`,
    method: 'post',
    data
  });
}
// 查询实际录入信息
export function queryinputInformation(params: any) {
  return request({
    url: `qms/single/singleVcutKnifes/selectDataList`,
    method: 'get',
    params
  });
}
// 新增刀具信息
export function newtoolInformation(data: any) {
  return request({
    url: `qms/single/singleVcutKnifes/insertData`,
    method: 'post',
    data
  });
}
// 修改刀具信息
export function toolinformationEdit(data: any) {
  return request({
    url: `qms/single/singleVcutKnifes/updateData`,
    method: 'post',
    data
  });
}
// 删除刀具信息
export function toolinformationDelete(data: any) {
  return request({
    url: `qms/single/singleVcutKnifes/deleteData`,
    method: 'post',
    data
  });
}

